﻿using System.Configuration;

namespace ALinq.BBS.Common.Config
{
    public class UserPhotoElement : ConfigurationElement
    {
        [ConfigurationProperty("maxWidth", DefaultValue = 120)]
        public int MaxWidth
        {
            get { return (int)base["maxWidth"]; }
            set { base["maxWidth"] = value; }
        }

        [ConfigurationProperty("maxHeight", DefaultValue = 120)]
        public int MaxHeight
        {
            get { return (int)base["maxHeight"]; }
            set { base["maxHeight"] = value; }
        }

        [ConfigurationProperty("scale",DefaultValue = false)]
        public bool Scale
        {
            get { return (bool)base["scale"]; }
            set { base["scale"] = value; }
        }

        [ConfigurationProperty("enableUpload",DefaultValue = false)]
        public bool EnableUpload
        {
            get { return (bool)base["enableUpload"]; }
            set { base["enableUpload"] = value; }
        }
    }
}